<template>
    <div class="desc">
        <h3>{{info.title}}</h3>
        <hr>
        <p class="content" v-html="info.content"></p>
    </div>
</template>

<script>
export default {
    data(){
        return{
            id:this.$route.params.id,
            info:{}
        }
    },
    created(){
        this.getInfo()
    },
    methods:{
        getInfo(){
            this.$http.get("api/goods/getdesc/" + this.id).then(result=>{
            if(result.body.status===0){
                this.info = result.body.message[0]
            }
        })
        }
    }
}
</script>

<style lang="sass">
.desc{
    titile{
        font-size:16px;
        text-align:center; 
        margin:10px 0;
    }
}
.content{
    img{
        width:100%;
    }
}
</style>
